<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<%@include file="/WEB-INF/jsp/common/head.jsp"%>
<meta content="text/html; charset=UTF-8" http-equiv="content-type">

<div class="right">
    <div class="location">
        <strong>当前位置:</strong>
        <span>志愿者申请页面</span>
    </div>
    <div class="search">
        <form method="get" action="${pageContext.request.contextPath }/sys/volunteer/list">
            <span>申请是否被处理：</span>
            <select name="status">
                    <option value="">--全部--</option>
                    <option value="1">--已处理--</option>
                    <option value="2">--未处理--</option>
            </select>
            <input type="hidden" name="pageIndex" value="1"/>
            <input	value="查 询" type="submit" id="searchbutton">
        </form>
    </div>
    <!--账单表格 样式和供货商公用-->
    <table class="supplierTable" cellpadding="0" cellspacing="0">
        <tr class="firstTr">
            <th width="5%">编号</th>
            <th width="10%">用户名称</th>
            <th width="10%">Email</th>
            <th width="5%">年龄</th>
            <th width="10%">电话</th>
            <th width="15%">申请理由</th>
            <th width="10%">申请时间</th>
            <th width="10%">状态</th>
            <th width="25%">操作</th>
        </tr>
        <c:forEach var="item" items="${volunteerList}" varStatus="status">
            <tr>
                <td>
                    <span>${item.id}</span>
                </td>
                <td>
                    <span>${item.name }</span>
                </td>
                <td>
                    <span>${item.email}</span>
                </td>
                <td>
                    <span>${item.age}</span>
                </td>
                <td>
                    <span>${item.phone}</span>
                </td>
                <td>
                    <span>${item.justify}</span>
                </td>
                <td>
                    <span>
                           ${item.date}
                    </span>
                </td>
                <td>
					<span>
						<c:if test="${item.status == 1}">已处理</c:if>
						<c:if test="${item.status == 2}">未处理</c:if>
					</span>
                </td>

                <td>
                    <span><a class="modifyStorageRecord" href="javascript:;" id=${item.id } ><img src="${pageContext.request.contextPath }/statics/images/upd.png" alt="修改" title="修改"/></a></span>
                    <span><a class="deleteStorageRecord" href="javascript:;" id=${item.id }><img src="${pageContext.request.contextPath }/statics/images/del.png" alt="删除" title="删除"/></a></span>
                </td>
            </tr>
        </c:forEach>
    </table>
    <input type="hidden" id="totalPageCount" value="${totalPageCount}"/>
    <c:import url="/WEB-INF/jsp/sysRole/rollpage.jsp">
        <c:param name="totalCount" value="${totalCount}"/>
        <c:param name="currentPageNo" value="${currentPageNo}"/>
        <c:param name="totalPageCount" value="${totalPageCount}"/>
    </c:import>
</div>
</section>

<!--点击删除按钮后弹出的页面-->
<div class="zhezhao"></div>
<div class="remove" id="removeBi">
    <div class="removerChid">
        <h2>提示</h2>
        <div class="removeMain">
            <p>确定删除该订单吗？</p>
            <a href="#" id="yes">是</a>
            <a href="#" id="no">否</a>
        </div>
    </div>
</div>

<%@include file="/WEB-INF/jsp/common/foot.jsp" %>
<script type="text/javascript" src="${pageContext.request.contextPath }/statics/js/volunteer/list.js"></script>